package recursion;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class SimpleRecursionExample {

	public static void main(String[] args) {
		
		SimpleRecursionExample sre = new SimpleRecursionExample();
		List<String> info = new ArrayList<String>();
		info.add("1");
		info.add("2");
		info.add("3");
		sre.printInfo(info);
		
		
		
	}
	
	public void printInfo(List<String> info)
	{
		int currentIndex = 0;
		System.out.println(info.get(currentIndex));
		
		info.remove(currentIndex);
		
		if (info.size() != 0)
		{
			printInfo(info);
		}
	}
	
}
